# encoding: utf-8
#@author: sydr
#@file: redis_keys.py
#@time: 2022/8/29 14:18

TOTAL_ENERGY_CHARGE_RANK_LIST = "cus:total:energy:charge:rank:%s"  # * 参数: 考试类型 val: userId score: 能量数值
ALL_ENERGY_CHARGE_RANK_LIST = "cus:all:energy:charge:rank:%s:%s"  # 参数: 考试类型 学习日期
GOODS_EXCHANGE_STOCK_RECORD = "cus:goodsExchangeStock:%s"  # 商品库存，goodsId
CLASS_ENERGY_CHARGE_RANK_LIST = "cus:class:energy:charge:rank:%s:%s:%s"  # 参数: 考试类型 班级id 学习日期
USER_CHALLENGE_NUM = "cus:user:challenge:%s"
CHALLENGE_NOTICE_DAY_RECORD = "cus:challengeNoticeDayRecord:%s"  # hash  日期
TODAY_STUDY_USER = "cus:today:study:%s:%s"  # 参数: 考试类型 学习日期 set userId
USER_DAILY_PLAN_SECTIONID = "cus:user:daily:plan:sectionid:%s:%s"
USER_DAILY_PLAN_PAPER = "cus:user:daily:plan:paperid:%s:%s"
NEW_USER_COURSE_LEARN_TASK = "cus:new:user:learn:task:%s:%s"
STUDY_PROGRESS = "cus:study:progress:date:%s:%s"
RECENTLY_WRONG_TOPIC = "tms:recently:wrongTopic:%s:%s:%s"  # 参数: 考试类型 用户id 学习日期
QTOPIC_TODAY_DONE_TOPIC = "tms:qt:today:%s:%s:%s"  # 考试类型 科目类型 日期，记录用户当天做了的速记本题
TODAY_TOPIC_STATISTICS = "tms:today:topic:statistics:%s:%s:%s"  # 考试类型 用户id 学习日期
PLANNER_WEWORK_USER_ID = "cms:planner:wework:user:id"  # set 记录加规划师的微信id
PLANNER_COUNTER = "cms:planner:counter"  # 已加群的人数
TODAY_COURSE_STATISTICS = "cus:today:course:statistics:%s:%s:%s"  # 考试类型 用户id 学习日期
FREE_PRACTICE_ROUND_POOL="tms:free:practice:%s:%s:%s"
STUDY_START_END = "cus:usr:st:rg:%s:%s"
USER_CALENDER_LIKE="cus:calender:like:%s:%s"
USER_TODAY_SEEDS = "cus:today:seeds:%s:%s"  # 参数: 考试类型 当天日期
USER_STUDY_CONTINUOUS_CLOCK_IN = "cus:user:study:clockIn:%s:%s"  # 参数: 考试类型 userId
CPA_VERSION="cpa:version"#hash
SUBJECT_TOPICNUM="tms:subject:topicNum"
USER_LAST_STUDY="cus:user:course:last:study:%s:%s"
CHALLENGE_NOTICE_DAY_RECORD="cus:challengeNoticeDayRecord:%s"#hash 参数: 日期
COURSE_CHALLENGE="cus:courseChallenge:%s:%s:%s"#参数: 考试类型 userId 挑战id hash
CUS_CHALLENGE_TOTAL_NUM="cus:challenge:total:Num:%s"#挑战配置id
COURSE_CHALLENGE="cus:courseChallenge:%s:%s:%s"# "hash" 参数: 考试类型 userId 挑战id
QTOPIC_DONE_TOPICS="tms:qt:all:%s:%s:%s"#set 参数: 考试类型 科目类型 userId
QTOPIC_CORRECT_POOL="tms:qt:correct:pool:%s:%s:%s"# "set"  参数: 考试类型 科目类型 用户id
QTOPIC_TOTAL_COUNT="tms:qt:total:%s"# "hash" 考试类型 hkey subjectType val总题数
QTOPIC_USER_PLAN="tms:qt:plan:%s:%s"# "hash"  参数: 考试类型 科目类型
QTOPIC_TODAY_GOAL_DONE_TOPIC="tms:qt:today:goal:%s:%s:%s:%s"# set参数: 考试类型 科目类型 日期 userId
QTOPIC_CURRENT_ROUND_DONE_TOPICS="tms:qt:round:%s:%s:%s"# "set" 参数: 考试类型 科目类型 userId
QTOPIC_CORRECT_COUNT="tms:qt:correct:%s:%s:%s"# "hash"参数: 考试类型 科目类型 userId hkey: topicId hval: 次数
QTOPIC_WRONG_COUNT="tms:qt:wrong:%s:%s:%s"# "hash"考试类型 科目类型 userId hkey: topicId hval: 次数
QTOPIC_MEMORY_CARD="tms:mm:all:%s:%s:%s"# "set" 参数: 考试类型 科目类型 userId
QTOPIC_STATISTICS_CORRECT="tms:statistics:correct:%s:%s"#参数: 考试类型 科目类型 hash
QTOPIC_WRONG_POOL="tms:qt:wrong:pool:%s:%s:%s" # "set"  参数: 考试类型 科目类型 用户id
QTOPIC_STATISTICS_WRONG="tms:statistics:wrong:%s:%s"# 参数: 考试类型 科目类型
MOCK_EXAM_NUMBER="tms:mock:exam:number" #hash
QTOPIC_MEMORY_CURRENT_ROUND_DONE_TOPICS="tms:mm:round:%s:%s:%s"# "set" 参数: 考试类型 科目类型 userId
BADGE_FETCH_NUM="badge:fetch:num:%s" #hash 参数    考试类型   key badgeId val 勋章获取的人数
LAST_PACKAGE_COURSE="cus:subject:package:last:study:%s:%s" # examType, userId    key subjectType value
LAST_COURSE="cus:package:last:study:%s:%s" # examType, userId value
LAST_COURSE_1="cus:user:course:last:study:%s:%s"# examType, userId
CORRECT_OTOPIC="tms:correctOtopic:%s:%s:%s"#examType, subjectType, userId
WRONG_OTOPIC="tms:wrongOtopic:%s:%s:%s"#examType, subjectType, userId
DAY_TOPIC="tms:otopicRecordOneDay:%s"# day
COURSE_LAST_STUDY="cus:course:last:study:%s" #courseId  string
PLAN_LAST_STUDY="cus:plan:last:study:%s" #userId hash key ：planId
ONLINE_REPORT_LIMIT="onlineReport:%s" #userId
NEW_BD_PAN_STUDY_PROGRESS="cus:newBdpan:study:progress:date:%s:%s:%s" #examType userId studyDate
MOCK_RANK="tms:mock:rank:%s"# mockId zset
MOCK_EXAM_NUMBER="tms:mock:exam:number"# hash
STOPIC_RECORD_NUMBER="tms:stopic:record:number" #hash






